package kr.hkit.powerjava.chapter11.work;

public class Student {
	private String stdName; //이름
	private int stdNum; //학번
	private String major; //학과
	private String grade; //학년
	private int credit; //이수학점
	
	public Student() {}
	
	public Student(String stdName, int stdNum, String major, String grade,
			int credit) {
		this.stdName = stdName;
		this.stdNum = stdNum;
		this.major = major;
		this.grade = grade;
		this.credit = credit;
	}

	public String getStdName() {
		return stdName;
	}

	public void setStdName(String stdName) {
		this.stdName = stdName;
	}
	public int getStdNum() {
		return stdNum;
	}
	public void setStdNum(int stdNum) {
		this.stdNum = stdNum;
	}
	public String getMajor() {
		return major;
	}
	public void setMajor(String major) {
		this.major = major;
	}
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	public int getCredit() {
		return credit;
	}
	public void setCredit(int credit) {
		this.credit = credit;
	}

	@Override
	public String toString() {
		return "Student [학생이름 = " + stdName + ", 학번 = " + stdNum
				+ ", 학과 = " + major + ", 학년 = " + grade + ", 이수 학점 = "
				+ credit + "]";
	}
	
	
}
